package com.bc.service.deal.FXBtc;

import java.util.HashMap;

import com.bc.service.BaseResponse;
import com.bc.service.deal.BtcCategory;
import com.bc.utils.Constants;

public class FXBtcResponse extends BaseResponse implements BtcCategory{
	boolean result;
	
	FXBtcTicker ticker;
	
	Params params;
	
	public static class FXBtcTicker {
		public double high;
		public double low;
		public double vol;
		public double last_rate;  //最近成交价
		public double ask;
		public double bid;
	}
	public class Params {
		String symbol;
	}
	@Override
	public HashMap<String, Object> getBtcNews() {
		HashMap<String, Object> mHashMap = new HashMap<String, Object>();
		if (ticker != null) {
			mHashMap.put(Constants.LAST_SALE_PRICE, ticker.last_rate);
			mHashMap.put(Constants.BUY_ONE_PRICE, ticker.bid);
			mHashMap.put(Constants.SELL_ONE_PRICE, ticker.ask);
			mHashMap.put(Constants.SELL_HIGH_PRICE, ticker.high);
			mHashMap.put(Constants.SELL_LOW_PRICE, ticker.low);
			mHashMap.put(Constants.SALE_VOLUME, ticker.vol);
		}
		return mHashMap;
	}
	@Override
	public String getBtcType() {
		return "fxbtcTicker";
	}
}
